/* 弹窗系统核心样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.model-file-content {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 80%;
    max-width: 1200px;
    height: 80vh;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}


.modal-header {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    height: 5%;
}

.modal-title {
    font-size: 1.5em;
    color: #333;
}

.close-btn {
    cursor: pointer;
    font-size: 28px;
    color: #666;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}




.delete-btn-table {
    background: transparent;
    color: white;
    border: none;
}

.rename-btn-table {
    background: transparent;
    color: #853d3d;
    border: none;
}



.file-item {
    padding: 8px;
    cursor: pointer;
}

.folder {
    color: #2c3e50;
}

.file {
    color: #7f8c8d;
}

ul {
    list-style: none;
    padding-left: 30px;
}

#back-btn {
    position: relative;
    /* 非 fixed 定位时需确认容器布局 */
    z-index: 1;
    /* 确保按钮可见性‌:ml-citation{ref="8" data="citationList"} */
}

.btli {
    padding-left: 100px;
}

.trash-btn:hover {
    background-color: transparent;
    transform: scale(1.5);
}

/* 图标颜色 */
.fa-trash {
    color: rgb(244, 9, 9);
    font-size: 10px;
}

#file-tree {
    display: flex;
    gap: 100px;
    border: 1px solid #ccc;
}


/* 上传按钮特定样式 */
.upload-btn:hover {
    background-color: transparent;
    transform: scale(1.5);
}

/* 上传按钮特定样式 */
.replace-btn:hover {
    background-color: transparent;
    transform: scale(1.5);
}

/* 上传按钮特定样式 */
.rename-btn:hover {
    background-color: transparent;
    transform: scale(1.5);
}

.back-btn {
    background-color: transparent;
    border: none;
    border-radius: 50%;
    padding: 15px;
    padding-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 25px
}


/* 文件项使用 Flex 布局 */
.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 左侧容器布局 */
.left-container {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 右侧操作按钮布局 */
.right-container {
    margin-left: auto;
    display: flex;
    gap: 8px;
    padding-left: 100px;
}

/* 按钮样式调整 */
.trash-btn,
.replace-btn,
.rename-btn {
    padding: 4px 8px;
    font-size: 0.9em;
}

.file-item .checkbox-container {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.spacer {
    flex: 1;
    height: 10px;
}


/* 弹窗样式 */
.modal {
    /* 定位与尺寸 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 精确居中 */
    width: 50vw;
    /* 视口宽度的50% */
    height: 50vh;
    /* 视口高度的50% */
    max-width: 100%;
    /* 防止超出屏幕 */

    /* 滚动处理 */
    overflow-y: none;
    /* 垂直溢出时显示滚动条 */

    /* 视觉样式 */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    /* 毛玻璃效果 */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* 布局控制 */
    display: none;
    /* 默认隐藏 */
    flex-direction: column;
    /* 内容垂直排列 */
}

.modal-tip {
    width: 100%;
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* 当需要显示时添加active类 */
.modal.active {
    display: flex;
}



/* 操作按钮容器 */
.modal-actions {
    bottom: 0;
    background: white;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.modal-content {
    width: 100%;
    background: white;
}

/* 取消按钮样式 */
#cancel-all-button {
    background: #ff4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

#cancel-all-button:hover {
    background: #cc0000;
}


.progress-container {
    flex: 1;
    /* 占据剩余空间 */
    min-width: 300px;
    /* 最小宽度限制 */
}

.progress-bar {
    height: 20px;
    background: #09ce7c;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.file-info {
    margin: 10px 0;
    color: #666;
    flex: 1;
    min-width: 120px;
}

.cancel-btn {
    background: #e9d225;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    margin-left: auto;
    /* 推到最右侧 */
}

.complate-btn {
    background: #1ec205;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}


/* 新增多文件样式 */
.upload-item {
    display: flex;
    /* 启用弹性布局 */
    align-items: center;
    /* 垂直居中对齐 */
    gap: 15px;
    /* 元素间距 */
    padding: 10px;
    border: 1px solid #eee;
    margin-bottom: 5px;
    display: flex;
    /* 启用弹性布局 */
}

.upload-progress {
    display: flex;
    align-items: center;
    margin: 8px 0;
}


.error-message {
    color: #ff4444;
    font-size: 0.9em;
}


.item-display {
    width: 95%;
    /* 与表格同宽 */
    margin: 0 auto 15px;
    /* 下边距15px保持与表格的间距 */
    background-color: #f5f5f5;
    /* 浅灰背景 */
    border: 1px solid #ddd;
    /* 边框与表格一致 */
    border-radius: 4px;
    /* 圆角匹配表格样式 */
    padding: 8px 12px;
    /* 内边距 */
    display: flex;
    align-items: center;
}

.path-label {
    font-weight: 500;
    /* 中等加粗 */
    color: #666;
    /* 标签文字颜色 */
    margin-right: 10px;
    /* 标签与输入框间距 */
    font-size: 14px;
    /* 与表格文字同号 */
}

.path-input {
    flex: 1;
    /* 自动填充剩余空间 */
    border: none;
    outline: none;
    background: transparent;
    /* 透明背景 */
    font-size: 14px;
    color: #333;
    /* 文字颜色 */
    padding: 4px 0;
    /* 垂直内边距 */
}

/* 路径显示模块 */
.path-control {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.path-label {
    font-weight: 600;
    color: #495057;
}

.path-display {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.path-input {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    color: #495057;
    font-size: 14px;
}

.path-copy {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.path-copy:hover {
    color: #0d6efd;
}


.checkmark {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #adb5bd;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s;
}

input:checked~.checkmark {
    background: #0d6efd;
    border-color: #0d6efd;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input:checked~.checkmark:after {
    display: block;
}

/* 文件名显示 */
.filename {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 32px;
    /* 配合行高居中 */
}

/* 操作按钮美化 */
.fixed-action-bar {
    width: 100%;
    text-align: center;
    margin-top: auto;

    background: #fff;
    gap: 10px;
    border-radius: 0 0 12px 12px;
}


.icon-file {
    display: inline-flex;
    vertical-align: middle;
    margin-right: 8px;
}

/* 操作按钮 */
.icon-btn {
    padding: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.filename-text {
    display: inline-block;
    max-width: calc(100% - 24px);
    /* 预留图标空间 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* 操作按钮 */
.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: none;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 10px;
    padding-left: 10px;
}


.action-btn:hover {
    background: #f1f3f5;
    color: #0d6efd;
}

.delete-btn:hover {
    color: #dc3545;
}

/* 底部操作栏 */
.action-bar {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content {
    display: flex;
    flex-direction: column;
    /* 垂直排列 */
    background: #f5f5f5;
    width: 60%;
    /* height: 800px; */
    height: 80vh;
    margin: 0 auto;
    margin-top: 100px;
}

.success-btn {
    background: #198754;
}

.success-btn:hover {
    background: #157347;
}

.danger-btn {
    background: #dc3545;
}

.danger-btn:hover {
    background: #bb2d3b;
}

.btn {
    padding: 10px 20px;
    border: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


/* 图标字体 */
@font-face {
    font-family: 'iconfont';
    src: url('iconfont.woff2') format('woff2');
}

.icon-copy:before {
    content: "\e60d";
}

.icon-trash:before {
    content: "\e61a";
}

.icon-edit:before {
    content: "\e606";
}

.icon-upload:before {
    content: "\e60f";
}

.icon-folder-upload:before {
    content: "\e610";
}

.icon-download:before {
    content: "\e611";
}


.primary {
    background: #1890ff;
    color: white;
}


.primary:hover {
    background: #f1f3f5;
    color: #0d6efd;
}

.success {
    background: #52c41a;
    color: white;
}

.success:hover {
    background: white;
    color: #52c41a;
    ;
}

.danger {
    background: #ff4d4f;
    color: white;
}

.danger:hover {
    color: #ff4d4f;
    background: white;
}

/* 复选框对齐优化 */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
}

.checkmark {
    margin-top: -2px;
    /* 视觉居中补偿 */
}


.modal-content-upload {
    bottom: 0;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    flex-direction: column;
}

.list-error{
    height: 80%;
}

/* 表格美化 */
.version_file_table {
    border-collapse: collapse;
    background: #fff;
}

.table-header th {
    padding: 16px 20px;
    background: #f8f9fa;
    color: #6c757d;
    font-weight: 500;
    border-bottom: 2px solid #e9ecef;
}

.table-container {
    flex: 1;
    overflow: auto;
    padding: 0 20px;
}

.file-table {
    border-collapse: collapse;
    width: 100%;
}

.file-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #495057;
}

.file-table tr:hover {
    background: #f8fbfd;
}


/* 交替行颜色 */
/* .file-table tr:nth-child(even) {
    background-color: #fafafa;
} */



/* 复选框美化 */
/* .bulk-select {
    width: 18px;
    height: 18px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
} */